﻿var express=require("express");
var app=express();

var host;
var port;
app.get('/',function(req,resp){
	resp.send('hello World');
	console.log(req.query);
	console.log(req.path);
	console.log(req.hostname);
	console.log(req.originalUrl);
	console.log(req.route);
})

var server=app.listen(8082,function(){
	host=server.address().address;
	port=server.address().port;
	
	console.log("应用实例，访问地址为http://%s:%s",host,port);
})